home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / run.xml < prev    next >
Text File  |  2002-08-30  |  787b  |  37 lines

  1. <search function="run">
  2.   <name>Run</name>
  3.   <description>
  4.     Replacement for the Windows Start menu Run command.<br/>
  5.     <div class="helpboxDescLabels">Example:</div>
  6.     <table class="helpboxDescTable">
  7.           <tr><td>run winword</td></tr>
  8.       </table>
  9.   </description>
  10.   <category>Functions</category>
  11.   
  12.   <script>
  13.     function run(q)
  14.     {
  15.       if( nullArgs("run",q) )
  16.         return false;
  17.       else
  18.       {
  19.         try
  20.         {
  21.           openDocument(q);
  22.         }
  23.         catch (e)
  24.         {
  25.           alert("Could not run " + q);
  26.         }
  27.       }
  28.     }
  29.   </script>
  30.  
  31.   <copyright>
  32.     Copyright (c) 2002 David Bau
  33.     Distributed under the terms of the
  34.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  35.   </copyright>
  36. </search>
  37.